package com.ranjiaqi.builder;

/**
 * @ClassName TestDelete
 * @Description TODO
 * @Author hp
 * @Date 2021/6/21 18:22
 * @Version 1.0
 **/
public class TestDelete {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("abcdef");
        /**
         * delete()方法删除字符串从start索引位置开始，到end索引位置结束。
         * 包含start不包含end
         */
        stringBuilder.delete(0,3);
        System.out.println("stringBuilder = " + stringBuilder);
    }
}
